<?php
class MemberController extends Yaf_Controller_Abstract{
    protected $mid = null;
    public function init(){
        $session = Yaf_Session::getInstance();
        if($session->has('info')){
            $info = $session->get('info');
            $this->_view->mid = $this->mid = $info['id'];
            $model = new NavigationModel;
            $menu = $model->where(['fid'=>21])->select();
            $this->_view->menu = $menu;
            return true;
        }else{
            return false;
        }
    }
}

